const arrayThunk=({dispatch,getState})=>next=>action=>{
    console.log(next,action)
    console.log(dispatch)
    if (Array.isArray(action)){
        return action.forEach(v=>dispatch(v))
    }
    return next(action)
}
export default arrayThunk